#include "neiderra/core/Core.h"
#include "neiderra/core/iException.h"
#include "neiderra/gui/Window.h"
#include "neiderra/gui/iGraphicsSubsystem.h"
#include "neiderra/utils/Logger.h"

using namespace neiderra::core;
using namespace neiderra::gui;
using neiderra::utils::Logger;

int main(int argc, char** argv)
{
  Core core;

  iGraphicsSubsystem* grsys = core.getGraphicsSubsystem();
  GUIWindow* window = grsys->createSystemWindow("Hello, World!");

  window->show();

  try
  {
	core.run(argc, argv);
  }
  catch(iException e)
  {
	  core.getLogger()->log(e.getReport());
  }
}
